#include "array.h"
using namespace std;

const int size = 10;
const int half = size/2;

int main() {
	array first(size);
	cout << "array size = " << first.get_size() << endl << first << endl << endl << "set values:" << endl;
	for (int i = 0; i < size; i++)
		first[i] = i;
	cout << first << endl << endl << "test copy constructor:" << endl;
	array second = first;
	cout << second << endl << endl << "accessors, mutators" << endl << "double element in a " <<  half << endl;
	second.set(half, second.get(half)*2);
	cout << second << endl << endl << "operator=" << endl << (first = second) << endl << endl << "Not bounded query" << endl;
	cout << first.get(size);
	return 0;
}
